<template>
  <div class="data-v-menu2">
    <div class="menu-list">
      <div class="menu-item" v-for="(item, index) in menuList" :key="index">
        <div class="menu-item-inner">
          <img src="./img/dft.png" :alt="item.name" width="23" height="23" />
          <span style="margin-top:5px">{{ item.name }} </span>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
// import dftImg from "./img/dft.png";

export default {
  name: "data-v-menu2",
  props: ["color", "activeColor", "menuList"]
};
</script>

<style lang="less">
.data-v-menu2 {
  width: 245px;
  height: 245px;
  // outline: 1px solid #1aad19;
  display: inline-flex;
  background: url(./img/border.png) no-repeat;
  background-size: contain;

  .menu-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    align-content: center;

    .menu-item,
    .menu-item-inner {
      clip-path: polygon(10% 0%,
          90% 0%,
          100% 10%,
          100% 90%,
          90% 100%,
          10% 100%,
          0% 90%,
          0% 10%);
    }

    .menu-item {
      width: 64px;
      height: 64px;
      margin: 5px;
      background: #1b779b;
      border: 1px solid #1b779b;
      color: #3DC9FF;
      cursor: pointer;
    }

    .menu-item-inner {
      height: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      background: #172b35;
      font-size: 14px;

      &:hover {
        background: #1c3b4b;
      }
    }
  }
}
</style>
